/*
author:杨文超
email:yangwenchao@keynection.cn
*/
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Initialize the spiffs
 *
 * @return ESP_OK on success
 */
esp_err_t geminai_spiffs_init(char *mount_point,char *partition_label);

/**
 * @brief Traversing the file and printing
 *
 * @param direntName Root directory
 * @param level Traversal depth
 */
void geminai_print_dir(char *direntName, int level);

/**
 * @brief Get the file name
 *
 * @param file file Pointer
 * @return file name
 */
const char *geminai_get_filename(const char *file);

/**
 * @brief Get the file size
 *
 * @param filepath File path
 * @return File size
 */
size_t geminai_get_file_size(const char *filepath);


#ifdef __cplusplus
}
#endif